home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / CStuff.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  1.2 KB  |  59 lines  |  [TEXT/CWIE]

  1. // CStuff.h -- window class
  2.  
  3. #pragma once
  4.  
  5. #include <LWindow.h>
  6. #include <LListener.h>
  7.  
  8. class DDocData;
  9. class LStream;
  10.  
  11. class CControlPane;
  12. class LTextGroupBox;
  13. class LPopupButton;
  14. class LTextTableView;
  15.  
  16. //----------
  17. class CStuff :    public LWindow,
  18.                         public LListener {
  19. public:    // static
  20.     static    CStuff*    CreateStuff    (LCommander*    inSuperCommander,
  21.                                                  DDocData*        inData);
  22.  
  23. public:
  24.     enum { class_ID = 'Stuf' };
  25.  
  26.                         CStuff        (LStream*    inStream);
  27.     virtual                ~CStuff();
  28.  
  29.     virtual void        ListenToMessage        (MessageT    inMessage,
  30.                                              void*        ioParam);
  31.  
  32.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  33.                                              void*        ioParam = nil);
  34.     virtual void        FindCommandStatus    (CommandT    inCommand,
  35.                                              Boolean    &outEnabled,
  36.                                              Boolean    &outUsesMark,
  37.                                              Char16        &outMark,
  38.                                              Str255        outName);
  39.  
  40. protected:
  41.     static    void        RegisterClass();
  42.     virtual void        FinishCreateSelf();
  43.     virtual void        ConnectToData    (DDocData*    inData);
  44.     virtual void        DataChanged        (long        inDataID);
  45.  
  46.  
  47. protected:
  48.     static Boolean        sIsRegistered;
  49.  
  50.     DDocData*        mData;
  51.  
  52. // Panes in this window:
  53.     CControlPane*        mToolsPalette;
  54.     LPopupButton*        mFromValuesList2Popup;
  55.     LPopupButton*        mFromMenuPopup;
  56.     LTextTableView*        mTextListTable;
  57.  
  58. };
  59.